]> dgit.raspbian.org Git - gnome-shell.git/commit
viewSelector: Merge WINDOWS and APPS pages
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Sat, 12 Dec 2020 15:57:15 +0000 (12:57 -0300)
committerMarge Bot <marge-bot@gnome.org>
Fri, 29 Jan 2021 15:01:03 +0000 (15:01 +0000)
commitde15eb3bbc1e49e6cc1bed6fe7811625d6862bf2
treecb87ea49f98e48c91afa8c84eed38275f1206cb4
parent07c970d90c768003f35a0d3f1fb9913d5a2b045d
viewSelector: Merge WINDOWS and APPS pages

Add them both in a StBoxLayout subclass with a vertical layout. This
new ActivitiesContainer class already contains an adjustment controlling
the transition between workspaces and app grid states, and althought it
is internal to it, it'll be easy to integrate with gestures in the
future.

Notice that AppDisplay is added before WorkspacesDisplay. That's because
we want the paint order to paint WorkspacesDisplay on top of AppDisplay.

Switch the ViewsPage enum to call this page ACTIVITIES, and adjust the
only caller in OverviewControls to it. At last, rename '_appsPage' to
'_activitiesPage' to also reflect the name change.

The usefulness of organizing this code in pages is lost here, but this
is a transitional state, and pages will be removed in future changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1593>
js/ui/overviewControls.js
js/ui/viewSelector.js